package one.stand.service;

import com.github.pagehelper.PageInfo;
import one.stand.model.DynamicModel;
import one.stand.model.ResultModel;
import one.stand.request.essay.CompanyDynamicsQuery;
import one.stand.request.essay.DynamicQuery;
import one.stand.request.essay.VisitorsDetailQuery;
import one.stand.response.essay.DynamicDetailResponse;
import one.stand.response.essay.DynamicModelResponse;

import java.util.List;

/**
 * 文章接口
 * @author luoyang
 * @date 2020/5/8 18:24
 */
public interface IDynamicService {
    /**
     * 查询企业文章和已转发的文章
     * @param request
     * @return
     */
    ResultModel<PageInfo<DynamicModelResponse>> queryDynamicData(DynamicQuery request);

    /**
     * 查询文章访客详情
     * @param request
     * @return
     */
    ResultModel<DynamicModelResponse> queryDynamicVisitors(VisitorsDetailQuery request);

    ResultModel<PageInfo<DynamicModelResponse>> queryCompanyDynamics(CompanyDynamicsQuery request);

    ResultModel<DynamicDetailResponse> queryCompanyDynamicById(CompanyDynamicsQuery request);

    ResultModel<Boolean> deleteByDynamicId(CompanyDynamicsQuery request);

    DynamicDetailResponse queryById(String dynamicId);

    /**
     * 更新员工分享数据
     * @param dynamicId
     */
    void updateShareNum(Integer dynamicId);

    void updateRead(Integer dynamicId,Integer readNum,Integer ReadTime);
}
